package com.wanshu.sys.controller;

import com.wanshu.common.util.PageUtils;
import com.wanshu.sys.model.SysLogQueryDTO;
import com.wanshu.sys.service.ISysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统日志 前端控制器
 * </p>
 *
 * @author 波哥
 * @since 2024-06-06
 */
//@CrossOrigin    //放开跨域限制
@Api(tags = "系统日志", value = "SysLog")
@RestController
@RequestMapping("/sys/sysLog")
public class SysLogController {

    @Autowired
    private ISysLogService sysLogService;

    @ApiOperation(notes = "分页日志信息", value = "查询日志角色")
    @GetMapping("/list")
    public PageUtils list(SysLogQueryDTO queryDTO){
        return sysLogService.queryPage(queryDTO);
    }

}
